.class public Lcom/instagram/android/fragment/fq;
.super Lcom/instagram/android/fragment/fg;
.source "SearchUsersFragment.java"


# instance fields
.field protected c:Lcom/instagram/android/a/aa;

.field private d:Lcom/instagram/android/d/e/am;

.field private e:Landroid/content/BroadcastReceiver;

.field private final f:Lcom/instagram/android/d/j/f;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/instagram/android/d/j/f",
            "<",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/instagram/android/model/b/e;",
            ">;>;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 29
    invoke-direct {p0}, Lcom/instagram/android/fragment/fg;-><init>()V

    .line 81
    new-instance v0, Lcom/instagram/android/fragment/fr;

    invoke-direct {v0, p0}, Lcom/instagram/android/fragment/fr;-><init>(Lcom/instagram/android/fragment/fq;)V

    iput-object v0, p0, Lcom/instagram/android/fragment/fq;->e:Landroid/content/BroadcastReceiver;

    .line 104
    new-instance v0, Lcom/instagram/android/fragment/fs;

    invoke-direct {v0, p0}, Lcom/instagram/android/fragment/fs;-><init>(Lcom/instagram/android/fragment/fq;)V

    iput-object v0, p0, Lcom/instagram/android/fragment/fq;->f:Lcom/instagram/android/d/j/f;

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/fragment/fq;)Lcom/instagram/android/d/e/am;
    .locals 1
    .parameter

    .prologue
    .line 29
    iget-object v0, p0, Lcom/instagram/android/fragment/fq;->d:Lcom/instagram/android/d/e/am;

    return-object v0
.end method

.method private af()V
    .locals 2

    .prologue
    .line 78
    iget-boolean v0, p0, Lcom/instagram/android/fragment/fq;->a:Z

    invoke-virtual {p0}, Lcom/instagram/android/fragment/fq;->v()Landroid/view/View;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/instagram/android/widget/s;->a(ZLandroid/view/View;)V

    .line 79
    return-void
.end method

.method static synthetic b(Lcom/instagram/android/fragment/fq;)V
    .locals 0
    .parameter

    .prologue
    .line 29
    invoke-direct {p0}, Lcom/instagram/android/fragment/fq;->af()V

    return-void
.end method


# virtual methods
.method public X()Lcom/instagram/android/fragment/fm;
    .locals 1

    .prologue
    .line 65
    sget-object v0, Lcom/instagram/android/fragment/fm;->b:Lcom/instagram/android/fragment/fm;

    return-object v0
.end method

.method protected Y()Landroid/widget/BaseAdapter;
    .locals 2

    .prologue
    .line 52
    iget-object v0, p0, Lcom/instagram/android/fragment/fq;->c:Lcom/instagram/android/a/aa;

    if-nez v0, :cond_0

    .line 53
    new-instance v0, Lcom/instagram/android/a/ae;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/fq;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/android/a/ae;-><init>(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/instagram/android/fragment/fq;->u()Landroid/support/v4/app/aj;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/a/ae;->a(Landroid/support/v4/app/aj;)Lcom/instagram/android/a/ae;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/a/ae;->a()Lcom/instagram/android/a/aa;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/fragment/fq;->c:Lcom/instagram/android/a/aa;

    .line 58
    invoke-virtual {p0}, Lcom/instagram/android/fragment/fq;->aa()Landroid/widget/Filter;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/fragment/fq;->b:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    invoke-virtual {v1}, Lcom/instagram/ui/widget/searchedittext/SearchEditText;->getSearchString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/Filter;->filter(Ljava/lang/CharSequence;)V

    .line 60
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/fragment/fq;->c:Lcom/instagram/android/a/aa;

    return-object v0
.end method

.method protected Z()I
    .locals 1

    .prologue
    .line 74
    sget v0, Lcom/facebook/ba;->search_for_a_user:I

    return v0
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 5
    .parameter

    .prologue
    .line 40
    invoke-super {p0, p1}, Lcom/instagram/android/fragment/fg;->a(Landroid/os/Bundle;)V

    .line 41
    new-instance v0, Lcom/instagram/android/d/e/am;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/fq;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p0}, Lcom/instagram/android/fragment/fq;->u()Landroid/support/v4/app/aj;

    move-result-object v2

    const/4 v3, 0x0

    iget-object v4, p0, Lcom/instagram/android/fragment/fq;->f:Lcom/instagram/android/d/j/f;

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/instagram/android/d/e/am;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;ILcom/instagram/android/d/j/f;)V

    iput-object v0, p0, Lcom/instagram/android/fragment/fq;->d:Lcom/instagram/android/d/e/am;

    .line 42
    invoke-virtual {p0}, Lcom/instagram/android/fragment/fq;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/fragment/fq;->e:Landroid/content/BroadcastReceiver;

    new-instance v2, Landroid/content/IntentFilter;

    const-string v3, "com.instagram.android.service.BROADCAST_FOLLOW_STATUS_CHANGED"

    invoke-direct {v2, v3}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v1, v2}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)V

    .line 43
    return-void
.end method

.method protected a(Landroid/widget/AdapterView;I)V
    .locals 2
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;I)V"
        }
    .end annotation

    .prologue
    .line 96
    invoke-virtual {p1, p2}, Landroid/widget/AdapterView;->getItemAtPosition(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/b/e;

    .line 99
    invoke-static {v0}, Lcom/instagram/android/q/b;->a(Lcom/instagram/android/model/b/e;)V

    .line 101
    invoke-virtual {p0}, Lcom/instagram/android/fragment/fq;->o()Landroid/support/v4/app/Fragment;

    move-result-object v1

    invoke-virtual {v1}, Landroid/support/v4/app/Fragment;->m()Landroid/support/v4/app/r;

    move-result-object v1

    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->k()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0}, Lcom/instagram/android/util/v;->a(Landroid/support/v4/app/r;Ljava/lang/String;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/e/b/a/a;->e()V

    .line 102
    return-void
.end method

.method protected a(Ljava/lang/String;)V
    .locals 1
    .parameter

    .prologue
    .line 70
    iget-object v0, p0, Lcom/instagram/android/fragment/fq;->d:Lcom/instagram/android/d/e/am;

    invoke-virtual {v0, p1}, Lcom/instagram/android/d/e/am;->a(Ljava/lang/String;)V

    .line 71
    return-void
.end method

.method protected aa()Landroid/widget/Filter;
    .locals 1

    .prologue
    .line 47
    iget-object v0, p0, Lcom/instagram/android/fragment/fq;->c:Lcom/instagram/android/a/aa;

    invoke-virtual {v0}, Lcom/instagram/android/a/aa;->getFilter()Landroid/widget/Filter;

    move-result-object v0

    return-object v0
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 147
    const-string v0, "search_users"

    return-object v0
.end method

.method public y()V
    .locals 2

    .prologue
    .line 131
    invoke-super {p0}, Lcom/instagram/android/fragment/fg;->y()V

    .line 132
    iget-object v0, p0, Lcom/instagram/android/fragment/fq;->d:Lcom/instagram/android/d/e/am;

    if-eqz v0, :cond_0

    .line 133
    iget-object v0, p0, Lcom/instagram/android/fragment/fq;->d:Lcom/instagram/android/d/e/am;

    invoke-virtual {v0}, Lcom/instagram/android/d/e/am;->i()Lcom/instagram/android/util/ah;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/util/ah;->g()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 134
    iget-object v0, p0, Lcom/instagram/android/fragment/fq;->d:Lcom/instagram/android/d/e/am;

    invoke-virtual {v0}, Lcom/instagram/android/d/e/am;->i()Lcom/instagram/android/util/ah;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/util/ah;->e()V

    .line 137
    :cond_0
    invoke-virtual {p0}, Lcom/instagram/android/fragment/fq;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-static {v0}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/fragment/fq;->e:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;)V

    .line 140
    iget-object v0, p0, Lcom/instagram/android/fragment/fq;->c:Lcom/instagram/android/a/aa;

    if-eqz v0, :cond_1

    .line 141
    iget-object v0, p0, Lcom/instagram/android/fragment/fq;->c:Lcom/instagram/android/a/aa;

    invoke-virtual {v0}, Lcom/instagram/android/a/aa;->c()V

    .line 143
    :cond_1
    return-void
.end method
